from django.urls import path

from users.views.login_view import UserLoginView, UserRegisterView, UserLogoutView
from users.views.user_view import CustomUserListView, CustomUserDetailView, PasswordChangeView



urlpatterns = [
    path('login/', UserLoginView.as_view(), name='login'),
    path('register/', UserRegisterView.as_view(), name='register'),
    path('logout/', UserLogoutView.as_view(), name='logout'),
    path('admin/user/', CustomUserListView.as_view(), name='admin-user_list'),
    path('user/<int:pk>/', CustomUserDetailView.as_view(), name='user_detail'),
    path('user/<int:pk>/updatapwd/', PasswordChangeView.as_view(), name='update_password'),
]
